import request from "@/utils/request";

/**
 * 获取墓位地址区域
*/
export const ApiGetCemeteryAddress = (data) => {
    return request({ url: `/wx/ytj/mwsxszlist`, method: "GET", data, hideLoading: true });
}

/**
 * 获取墓位列表
*/

export const ApiGetCemeteryList = (data) => {
    return request({ url: `/wx/ytj/mwlist`, method: "GET", data, hideLoading: true });
}

/**
 * 获取墓位详情
*/
export const ApiGetCemeteryDetail = (id) => {
    return request({ url: `/wx/ytj/mwkcDetail?id=${id}`, method: "GET" });
}


/**
 * 通过逝者姓名获取墓位列表
*/
export const ApiGetCemeteryBySzxm = (data) => {
    return request({ url: `/wx/ytj/mwszxxlist`, method: "GET", data, hideLoading: true });
}

/**
 * 下单续缴管理费
*/
export const ApiOrderRenewalPayment = (data) => {
    return request({ url: `/wx/ytj/addXjglf`, method: "POST", data, hideLoading: true });
}

/**
 * 续缴墓位管理费
*/
export const ApiRenewalPayment = (data) => {
    return request({ url: `/wx/ytj/xjglfWxYtjPay`, method: "POST", data, hideLoading: true });
}

/**
 * 获取缴费结果
*/
export const ApiGetRenewalPaymentResult = (id) => {
    return request({ url: `/wx/ytj/xjglfZfDetail?id=${id}`, method: "GET", hideLoading: true });
}

/**
 * 获取微信续交缴费结果
*/
export const ApiGetWxRenewalPaymentResult = (data) => {
    return request({ url: `/wx/ytj/wxZfDetail`, method: "GET", data, hideLoading: true });
}


/**
 * 获取发票结果通知
*/
export const ApiGetInvoiceResultNotice = (data) => {
    return request({ url: `/wx/ytj/xjglfYtjFpxx`, method: "POST", data, hideLoading: true });
}

/**
 * 获取管理费打印订单 
*/
export const ApiGetManageFeePrintOrder = (data) => {
    return request({ url: `/wx/ytj/ddlist`, method: "GET", data, hideLoading: true });
}

/**
 * 获取管理费打印订单详情
*/
export const ApiGetManageFeePrintOrderDetail = (id) => {
    return request({ url: `/wx/ytj/ddgldetail?id=${id}`, method: "GET", hideLoading: true });
}
